package a.g.a;

import a.e.k;
import a.e.m;
import a.h.dc;
import a.j.db;
import a.j.g;
import a.j.jb;
import a.j.pg;

import javax.imageio.ImageWriter;
import java.awt.*;

public class h
  extends f
{
  private static final String P = "IMAGEIO_OUTPUT";
  private static final String Q = "ANTIALIASING";
  private static final String R = "TRANSPARENT_BACKGROUND";
  private static final String S = "IMAGE";
  private final ImageWriter T;
  public static int U;
  
  public h(ImageWriter paramImageWriter)
  {
    super("IMAGEIO_OUTPUT", "[SM]", "ImageIO Export");
    this.T = paramImageWriter;
  }
  
  protected boolean z()
  {
    return false;
  }
  
  protected dc j()
  {
    dc localdc = new dc("IMAGEIO_OUTPUT");
    localdc.l("VIEWPORT");
    b(localdc);
    localdc.l("IMAGE");
    localdc.a("ANTIALIASING", true);
    if (!a.M)
    {
      if (z()) {
        localdc.a("TRANSPARENT_BACKGROUND", false);
      }
      d(localdc);
      localdc.l("TILING");
    }
    c(localdc);
    return localdc;
  }
  
  protected k y()
  {
    return new m(this.T);
  }
  
  protected void n()
  {
    boolean bool3 = a.M;
    boolean bool2 = a.L;
    m localm = (m)v();
    g localg = e();
    pg localpg1 = localm.a(localg);
    pg localpg2 = g();
    localg.a(localpg1);
    a(localpg1, localpg2);
    localpg1.a(localpg2.W());
    dc localdc = i();
    localm.b(localdc.g("ANTIALIASING"));
    w();
    x();
    if ((bool3) || (z())) {
      if (bool3) {}
    }
    boolean bool1 = localdc.g("TRANSPARENT_BACKGROUND");
    localm.c(bool1);
    db localdb = localpg2.Y();
    jb localjb;
    if (!bool3) {
      if (bool1)
      {
        localjb = new jb(localpg1);
        localjb.a(new Color(255, 255, 255, 0));
        localpg1.a(localjb);
        super.n();
        if (bool3) {
          break label269;
        }
        if (!bool2) {
          break label247;
        }
      }
    }
    if ((bool3) || ((localdb instanceof jb)))
    {
      localjb = (jb)localdb;
      localjb.a(localpg1);
      localpg1.a(localjb);
      super.n();
      localjb.a(localpg2);
      if (bool3) {
        break label269;
      }
      if (!bool2) {}
    }
    else
    {
      super.n();
    }
    label247:
    a(localm);
    localg.c(localg.fb());
    localg.a(localpg2);
    label269:
    if ((bool3) || (q.n))
    {
      if (!bool3) {}
      a.L = !bool2;
    }
    if (q.o) {
      a.M = !bool3;
    }
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.g.a.h

 * JD-Core Version:    0.7.0.1

 */